﻿using System;
using System.Collections.Generic;
using System.Text;
using QLST_DAO;
using QLST_DTO;

namespace QLST_BUS
{
    public class NHANVIENBUS
    {
        NHANVIENDAO NVDao = new NHANVIENDAO();
        /// <summary>
        /// Dang nhap he thong
        /// </summary>
        /// <param name="nv"></param>
        /// <returns></returns>
        public NHAN_VIEN DangNhap(NHAN_VIEN nv)
        {
            return NVDao.DangNhap(nv);
        }

        /// <summary>
        /// Lay Danh Sach Nhan Vien
        /// </summary>
        /// <returns></returns>
        public List<NHAN_VIEN> GetDs()
        {
            return NVDao.GetDs();
        }

        /// <summary>
        /// Them nhan vien
        /// </summary>
        /// <param name="nv"></param>
        /// <returns></returns>
        public int Insert(NHAN_VIEN nv)
        {
            return NVDao.Insert(nv);
        }
    }

}
